import mockjs from 'mockjs';
mockjs.mobile_prefix = ["134", "135", "136", "137", "138", "139", "150", "151","152", "157", "158", "159", "130","131", "132", "155", "156", "133", "153"];
export function getMobile() {
 return mockjs.random(1, mockjs.mobile_prefix) + mockjs.random(8, mockjs.numeric);
}

mockjs.email_suffix = ["@qq.com", "@163.com","@163.net",  "@126.com", "@sina.com"];
export function getEmail() {
	let opt = mockjs.numeric + mockjs.lowerCase + mockjs.upperCase
	return mockjs.random( mockjs.randomInt(4, 10), opt) + mockjs.random(1, mockjs.email_suffix);
}

mockjs.depData = [
{
  name:'研发部门',
  code:'001'
},
{
  name:'测试部门',
  code:'002'
},
{
  name:'市场部门',
  code:'003'
},
{
  name:'运维部门',
  code:'004'
},
{
  name:'财务部门',
  code:'005'
}
];
//部门数据
export function getDepData(type) {
	return mockjs.random(1, mockjs.depData[type]);
}
